package com.coffee.order.api.inquire.service;

import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;
import com.coffee.order.api.inquire.query.InquireOrderContractQuery;
import com.coffee.order.api.inquire.result.InquireOrderContractResult;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface InquireOrderContractService {

	Page<InquireOrderContractResult> getPager(InquireOrderContractQuery param, PagerInfo pr);
	
	Integer count(InquireOrderContractQuery param);
	
	InquireOrderContractResult getDetail(Integer id);
	
	List<InquireOrderContractResult> getList(InquireOrderContractQuery param, PagerInfo pr);
	
	List<InquireOrderContractResult> getList(InquireOrderContractQuery param);
	
	List<InquireOrderContractResult> getList();

	void delete(Integer id);

	void addOrUpdate(InquireOrderContractResult result)throws BusinessException;
	
	Map<Integer,InquireOrderContractResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,InquireOrderContractResult> getItemMap();
	
}